package dashboard;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Id;


@SuppressWarnings("serial")
public class Activity implements Serializable{

		@Id Long id;
		private Date start;
		private long duration;
		private int nrOfPages;
		private long courseId;
		private int appreciation;
		private String place;
		private String type;
		
		public Activity(Date start, long courseId, String type)
		{
			this.start = start;
			this.duration = 0;
			this.nrOfPages = 0;
			this.courseId = courseId;
			this.appreciation = 0;
			this.place = null;
			this.type = type;
		}
		
		public Activity(){
			
		}
		
		//getters and setter
		
			public void setDuration (long duration)
		{
			this.duration = duration;
		}
			
		public Date getStart(){
			return start;
		}
		
		public long getDuration(){
			return duration;
		}
	
		public int getNrOfPages() {
			return nrOfPages;
		}

		public void setNrOfPages(int nrOfPages) {
			this.nrOfPages = nrOfPages;
		}

		public int getAppreciation() {
			return appreciation;
		}

		public void setAppreciation(int appreciation) {
			this.appreciation = appreciation;
		}

		public long getCourseId() {
			return courseId;
		}
		
		public void setPlace(String place) {
			this.place = place;
		}
		
		public String getPlace() {
			return place;
		}
		
		public String getType() {
			return type;
		}
}
